<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>缩放-scale</title>
    <style>
        /* 语法：scale(x,y) 
        两个参数：一个是x轴方向，一个是y轴方向
        参数取值：缩小0~1之间，放大：大于1
        */
        
        .father {
            width: 300px;
            height: 200px;
            border: 1px dashed gray;
        }
        
        .son {
            width: 300px;
            height: 200px;
            background-color: skyblue;
            opacity: 0.6;
            transform: scale(1.5, 1.6)
        }
    </style>
</head>

<body>
    <div class="father">
        <div class="son"></div>
    </div>
</body>

</html>